package com.me.forum.utils.components.model;

import com.me.enums.RespType;

public interface IModel {
	static IModel get() {
		Model model = new Model();
		model.success(true);
		return model;
	}
	
	Object put(String key, Object value);
	
	default IModel add(RespType key, Object value) {
		put(key.toString(), value);
		return this;
	}
	
	default IModel success(boolean success) {
		put("success", success);
		return this;
	}
}
